home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- set -e
-
- # None of these packages are strictly needed, but they make X
- # autoconfiguration work better. Need to install them before X is
- # preconfigured. Note that they are also listed as part of the task, which
- # will take care of their removal when the task is removed.
- # We also install the X server early on so that other packages (e.g.
- # usplash) can get at the resolution it configures.
- for pkg in discover1 xresprobe xserver-xorg; do
- if apt-cache show "$pkg" >/dev/null 2>&1 &&
- ! dpkg --get-selections | egrep "^$pkg[[:space:]]+install"; then
- apt-get "$@" -q -y -f install $pkg >/dev/null || true
- fi
- done
-